package com.kkang.ch1.javaconfig;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author yongk_liu
 **/
public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(Javaconfig.class);
        UseFunctionService bean = applicationContext.getBean(UseFunctionService.class);
        System.out.println(bean.SayHello(" world!"));
        applicationContext.close();
    }

}
